#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <xlsxdocument.h>

#include "screenshotwidget.h"
#include <QAxObject>
QT_BEGIN_NAMESPACE
namespace Ui {
class Widget;
}
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();


    bool isTableExists(QString &table);
    void creatNewTable(QAxObject *work_sheet);
    void InsertData(QAxObject *work_sheet);

    void handleProgress(int percent);
    void handleFinished(bool success);

private slots:
    void on_screenshot_clicked();

    void on_selectButton_clicked();

    void on_showButton_clicked();

    void on_deriveButton_clicked();

private:
    Ui::Widget *ui;
    ScreenShotWidget *widget;
    QXlsx::Document* m_xlsx = nullptr;

};
#endif // WIDGET_H
